
#include "ate.h"
#include "idefs.h"

/*INST_T vlist[]= {
	EX_JUMPTO 	+ ABS_ADDR(1) 	+ MS_DELAY(1500),
	EX_PWR_KEY 	+ PRE_DELAY(50) + DROP_HOLD(160) 		+ AFT_DELAY(450),
	AT_AT 		+ TIMEOUT(1) 							+ ERR_JUMPTO(3),
	AT_AT 		+ TIMEOUT(1) 							+ ERR_JUMPTO(4),
	AT_AT 		+ TIMEOUT(1) 							+ ERR_JUMPTO(0),
	AT_QCFG 	+ TIMEOUT(1) 							+ ERR_JUMPTO(2),
	AT_CPINQ 	+ TIMEOUT(1) 	+ ERROR_RETRY_TIMES(3) 	+ ERR_JUMPTO(8),
	AT_CIMI 	+ TIMEOUT(1) 							+ ERR_JUMPTO(6),
	AT_CSQ 		+ TIMEOUT(1) 							+ ERR_JUMPTO(2),
	AT_CGREGQ 	+ TIMEOUT(1) 							+ ERR_JUMPTO(2),
	EX_JUMPTO 	+ ABS_ADDR(6) 	+ MS_DELAY(500)
};*/
/*INST_T vlist[]= {
	AT_AT 		+ TIMEOUT(1) 							+ ERR_JUMPTO(3),
	AT_AT 		+ TIMEOUT(1) 							+ ERR_JUMPTO(4),
	AT_AT 		+ TIMEOUT(1) 							+ ERR_JUMPTO(0),
	AT_QCFG 	+ TIMEOUT(1) 							+ ERR_JUMPTO(2),
	AT_CPINQ 	+ TIMEOUT(1) 	+ ERROR_RETRY_TIMES(3) 	+ ERR_JUMPTO(8),
	AT_CIMI 	+ TIMEOUT(1) 							+ ERR_JUMPTO(6),
	AT_CSQ 		+ TIMEOUT(1) 							+ ERR_JUMPTO(2),
	AT_CGREGQ 	+ TIMEOUT(1) 							+ ERR_JUMPTO(2),
};*/

INST_T vlist[]= {
	{AT_AT,		TIMEOUT(1),		0,						ERR_JUMPTO(3)},
	{AT_AT,		TIMEOUT(1),		0,						ERR_JUMPTO(4)},
	{AT_AT,		TIMEOUT(1),		0,						ERR_JUMPTO(0)},
	{AT_QCFG,	TIMEOUT(1),		0,						ERR_JUMPTO(2)},
	{AT_CPINQ,	TIMEOUT(1),		ERROR_RETRY_TIMES(3),	ERR_JUMPTO(8)},
	{AT_CIMI,	TIMEOUT(1),		0,						ERR_JUMPTO(6)},
	{AT_CSQ,	TIMEOUT(1),		0,						ERR_JUMPTO(2)},
	{AT_CGREGQ,	TIMEOUT(1),		0,						ERR_JUMPTO(2)}
};

INST_T * getSpaceAddr(void)
{
	return &vlist[0];
}

uint32_t getSpaceDimen(void)
{
	return sizeof(vlist)/sizeof(INST_T);
}